<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>案例展示</title>
  <link rel="stylesheet" href="__PUBLIC__/css/cases.css">
</head>
<body>
<div class="container">
    <div class="header">
    <div class="header_content">
        <div class="header_logo">
            <a href="index.php">
                <img class="logo" src="__PUBLIC__/images/logo.gif" alt="">
            </a>
        </div>
        <div class="header_nav">
            <p class="header_user">
                <?php if (isset($_COOKIE['login']) && $_COOKIE['login'] == "1") { ?>

                <a href="user_center.php"><?php echo $_COOKIE['username']; ?></a>
                <a href="<?php echo U('User/logout');?>">退出</a>
                <?php } else { ?>

                <a href="<?php echo U('User/login');?>" target="_blank">登录</a> |
                <a href="<?php echo U('User/register');?>" target="_blank">注册</a>
                <?php } ?>
                <select name="" id="">
                    <option value="">旗下网站</option>
                    <option value="">文豆广州</option>
                    <option value="">文豆深圳</option>
                </select>
            </p>
            <p class="header_nav_info">
                <a href="<?php echo U('About/index');?>" target="_blank">公司简介</a>
                <a href="<?php echo U('Cases/index');?>" target="_blank">案列展示</a>
                <a href="<?php echo U('News/index');?>" target="_blank">资讯中心</a>
                <a class="lxwm" href="<?php echo U('About/contact');?>" target="_blank">联系我们</a>
            </p>
        </div>
    </div>
</div>

  <div class="banner">
	<img src="__PUBLIC__/images/cases_banner.gif" alt="">
  </div>
  <div class="main">
	<div class="main_nav">
	  <ul>
		<li class="main_nav_first" <?php if ($cateid == 0) { echo 'style="background:#FFA72B"'; } ?>><a class="block" href="cases.php">所有分类</a></li>
		<?php foreach ($cate as $value) { ?>
          <li <?php if ($cateid == $value['cateid']) { echo 'style="background:#FFA72B"'; } ?>>

          <a class="block" href="<?php echo U('Cases/index?cateid='.$value['cateid']);?>">
              <?php echo $value["cate_name"];?>
          </a>
          </li>
		<?php } ?>
	  </ul>
	</div>
	<div class="main_content">
	  <ul>
		<?php foreach ($cases as $k => $value) { ?>
		  <li class="<?php if (($k + 1) % 3 == 0) { echo 'right3'; } ?>">
			<a href="<?php echo U('Cases/cases_detail?id='.$value['id']);?>" target="_blank">
			  <img class="case_img" src="__PUBLIC__/<?php echo $value['src'] ?>" alt="">
			</a>

			<p>
			  <a href="cases_01.php"><?php echo $value['title'] ?></a>
			</p>
		  </li>
		<?php } ?>
	  </ul>
	</div>
	<div class="main_next">
	  <?php echo $page_link; ?>
	</div>
  </div>
    <div class="footer">
    <div class="footer_content">
        <p class="footer_info">
            <a class="company_info" href="">公司简介</a> |
            <a href="">案例展示</a> |
            <a href="">资讯中心</a> |
            <a href="">联系我们</a>
        </p>

        <p class="footer_copyright">
            <span>文豆集团 Copyright 2009-2015 ,All Rights Reserved wengdo</span>
            <a class="footer_copyright_info" href="">粤IPC备12022584号-3</a>
					<span class="footer_share">
						<span>分享到：</span>
						<a href="https://wx.qq.com/" target="_blank">
                            <img src="__PUBLIC__/images/icon_share_01.gif" alt="">
                        </a>
						<a href="http://reg.t.qq.com/" target="_blank">
                            <img src="__PUBLIC__/images/icon_share_02.gif" alt="">
                        </a>
						<a href="weibo.com " target="_blank">
                            <img src="__PUBLIC__/images/icon_share_03.gif" alt="">
                        </a>
					</span>
        </p>

        <p>法律顾问：广东晟晨律师事务所-张勇律师</p>
        <?php $s = json_encode($service); ?>
    </div>
</div>

</div>
</body>
</html>